package com.enjoyor.soa.traffic.util.enums.signal;

public enum SysStatus {
	ONLINE("1","正常在线"),
	OFFLINE("2","脱机"),
	ERROR("3","异常故障");
		
		private final String key;

		private final String value;

		private SysStatus(String key, String value) {
			this.key = key;
			this.value = value;
		}

		public String getKey() {
			return this.key;
		}

		public String getValue() {
			return this.value;
		}
		public static String getValue(String key) {  
			SysStatus[] enums = values();  
	        for (SysStatus e : enums) {  
	            if (e.getKey().equals(key)) {  
	                return e.getValue();  
	            }  
	        }  
	        return null;  
	    } 
}
